<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<head>
   	<jsp:include page="head.jsp"></jsp:include>
</head>
<body style="margin:0;padding:0;height:100%;overflow:hidden;background:#F2FBFF">
	<form id="shopInfoform" method="post">
		<input type="hidden" id="cid" name="id" value=""/>
	</form>
	<div class="easyui-layout" fit="true">
		<div region="north" border="false">
			<div class="toolbar">
				<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="newItem()">新增</a>
				<a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="editItem()">修改</a>
				<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" plain="true" onclick="delItem()">删除</a>

			</div>
			<div style="padding-left:5px;padding-top:5px;">
				 <table style="border:1px solid #AEDEF2;border-collapse: collapse;">
				<tr>
					<td style="width:80px">门店区域：</td>
					<td>
						<input id="qareaId" class="easyui-combobox query"  name="query.areaId" style="width:200px" 
							readonly="true" 
							url="<c:url value='/cust/outParamJsonByDomainCustInfo.tg?nickName=CITY_AREA'/>"
							valueField="value" textField="name" panelHeight="auto"  readonly="true">											
					</td>
					<td style="width:80px">门店名称：</td>
					<td>
						<input type="text" id="shopName"
						class="easyui-numberbox" name="query.shopName"
						validType="length[0,30]"></input>							
					</td>

						<td  style="width:110px" align="center">
				        <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="searchRecord()">搜索</a>
				        </td>
					</tr>

				</table>
			</div>					
		</div>

		<div region="center" border="false">

			<table id="t-shopInfo" class="easyui-datagrid"
					url="<c:url value='/permissions/getItemsShopInfo.tg'/>"
					method="post"
					singleSelect="true" pagination="true"					
					border="false" fit="true">
				<thead>
					<tr>
						<th field="ck" checkbox="true"></th> 
						<th field="shopId" width="100">门店ID</th>				
						<th field="shopName" width="100">分店名称</th>				
						<th field="parentId" width="100">上级门店</th>				
						<th field="shopPhone" width="100">门店电话</th>				
						<th field="shopManager" width="100">门店负责人</th>				
						<th field="managerPhone" width="100">门店负责人电话</th>				
						<th field="shopContact" width="100">门店联系人</th>				
						<th field="contactPhone" width="100">联系人电话</th>				
						<th field="shopArea" width="100">门店所在区域</th>				
						<!-- <th field="areaId" width="100">区域ID</th>   -->
						<th field="shopAddress" width="100">门店地址</th>				
						<th field="shopLatitude" width="100">门店纬度</th>				
						<th field="shopLongitude" width="100">门店经度</th>				
						<th field="shopType" width="100">门店类别</th>				
						<th field="shopDescription" width="100">主营描述</th>				
						<th field="shopImagePaht" width="100">门店形象图</th>				
					</tr>
				</thead>
			</table>
		</div>
	</div>
	
	<div id="dlg" style="width:430px;height:400px;"
			class="easyui-dialog" closed="true" modal="true" buttons="#dlg-buttons">
		<div style="padding-left:50px;padding-top:20px;">
			<div style="float:center">
				<form id="myform" method="post" style="margin:0;padding:0">
					<jsp:include page="form.jsp"></jsp:include>
				</form>
			</div>
			<div style="clear:both"></div>
		</div>
		<div id="dlg-buttons" style="text-align:center;">
			<a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="saveItem()">保存</a>
			<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">关闭</a>
		</div>
	</div>

</body>
